#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d", &a);
	if (a < 10)
		printf("%d", 1);
	else
	{
		do
		{
			a = a / 10;
			b = b + 1;
		} while (a != 0);
		printf("%d", b);
	}
	return 0;
}
